
const { spawn } = require('child_process');

const sh = spawn('./shell/publish-self.sh');

sh.stdout.on('data', (data) => {
  console.log('out:' + data)
});

sh.stderr.on('data', (data) => {
  console.log('err:' + data)
});


sh.on('close', (code, signal) => {
  console.log('run sh over: ' + signal);
  console.log('run sh code: ' + code)
});

sh.on ('error', (error) => {
  console.log('sh pull error: ', error);
});
